﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="Add.aspx.cs" Inherits="IssueTrackerMvcWeb.Views.Home.Add" %>
<%@ Import Namespace="IssueTrackerMvcWeb.Controllers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <%using (Html.Form<HomeController>(p => p.Create()))
      { %>
        <table>
            <tr>
                <td>Project</td>
                <td><%=Html.DropDownList("Issue.ProjectId", new SelectList(ViewData.Model.ProjectList, "Id", "Name"))%></td>
            </tr>
            <tr>
                <td>Title</td>
                <td><%=Html.TextBox("Issue.Title", ViewData.Model.NewIssue.Title)%></td>
            </tr>
            <tr>
                <td>Description</td>
                <td><%=Html.TextBox("Issue.Description", ViewData.Model.NewIssue.Description)%></td>
            </tr>
            <tr>
                <td>Long Description</td>
                <td><%=Html.TextBox("Issue.LongDescription", ViewData.Model.NewIssue.LongDescription)%></td>
            </tr>  
        </table>
        <%= Html.SubmitButton("Submit", "Submit") %>
    <%} %>
</asp:Content>
